import axiosInstance from "../axiosInstance";


const commtInfo = {
    getListByPage({ pageIndex,food_name,start_time,end_time}) {
        return axiosInstance(`commentInfo/getListByPage`,{
            params:{
                pageIndex,food_name,start_time,end_time
            }
        })


    },
    //根据菜品id分页获取评论
    getCommentInfoListByFid({fid,pageIndex}){
        return  axiosInstance(`commentInfo/getCommentInfoListByFid`,{
            params:{
                fid,pageIndex
            }
        })
    },
    /**
     * 删除
     * @param {Number} id 
     * @returns 
     */
    deleteById(id){
        return axiosInstance.get(`/commentInfo/deleteById`,{
            params:{
                id
            }
        })
    }


}





export default commtInfo;